<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="美国,欧美,游戏专线独享EB,socks5代理IP,proxy"/>
<meta name="description" content="socks5自由在线提取系统，出售包日EB，S5代理，包月独享专线，保证独享专线一个IP一个人使用，大量proxy" />
<title>无标题文档</title>
<style type="text/css">
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}

.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}

.STYLE6 {
	color: #000000;
	font-size: 14px;
}

.STYLE10 {
	color: #000000;
	font-size: 12px;
}

.STYLE19 {
	color: #344b50;
	font-size: 12px;
}

.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}

.STYLE22 {
	font-size: 12px;
	color: #295568;
}

.buylink{
	text-decoration: none;
	color: #000000;
}

</style>
<script type="text/javascript" src="<%=path%>/js/jquery-1.4.3.js"></script>
<script type="text/javascript">
	function pagebuy(o){
		var no = $('#pageNo').val();
		var reg =/^[0-9]+$/ig;
		if(reg.test(no)){
			if(no>o||no<1){
				alert("输入正确的页码！");
				return false;
			}
			return true;
		}
		return false;
	}
	function refresh(){
		top.topFrame.location.reload();
	}

	function deleteConfirm(id){
		if(confirm("确定要删除本条吗？")){
			location.href='<%=path%>/user/item!delete.do?itemId='+id;
		 }
	}
		
</script>
</head>

<body onload="refresh();">
	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td height="24" bgcolor="#353c44"><table width="100%"
								border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td><table width="100%" border="0" cellspacing="0"
											cellpadding="0">
											<tr>
												<td height="19" valign="bottom"><img
													src="<%=path%>/images/tb.gif" width="14" height="14" /><span
													style="vertical-align: middle;" class="STYLE1">
														购买列表</span></td>
												<td valign="bottom"></td>
											</tr>
										</table></td>
									<td>&nbsp;</td>
								</tr>
							</table></td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td bgcolor="d3eaef" height="34px">
				<form action="<%=path%>/user/item!queryItem.do" method="post">
					<table border="0px">
						<tr>
							<%-- <td width="4%" align="right">Type:&nbsp;</td>
							<td width="12%" style="color: #EEEEFF;"><s:select list="types" name="type"  headerKey="" headerValue="--All--" id="type" cssStyle="width:100px;"/></td>
							<td width="4%" align="right">Country:&nbsp;</td>
							<td width="12%" style="color: #EEEEFF;"><s:select list="countries" name="country"  headerKey="" headerValue="--All--" id="country" cssStyle="width:100px;"/></td>
							<td width="24%">Region:&nbsp;
								<select id="region" name="region" style="width:100px">
									 <option value="">--All--</option>
								</select>
							</td> 
							<td width="50%">ISPay:&nbsp;
								<select  name="flag" style="width:100px">
									 <option value="">--All--</option>
									 <option value="0">NO</option>
									 <option value="1">YES</option>
								</select></td>
								
							<td style="color: #EEEEFF;"><input type="submit"
								value="Search" /></td>
							<td style="color: #EEEEFF;"><input type="submit"
								value="Refresh" /></td>
							--%>
						</tr>
					</table>
				</form>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>

		<tr>
			<td><table width="100%" border="0" cellpadding="0"
					cellspacing="1" bgcolor="#a8c7ce">
					<tr>
						<td width="4%" height="20" bgcolor="d3eaef" class="STYLE10"><div
								align="center">
								<span class="STYLE10">No.</span>
							</div></td>
							<td width="18%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">orderNo(订单号)</span>
						</div></td>
						<td width="12%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">Price(价格)</span>
							</div></td>
						<td width="22%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">BuyTime(购买时间)</span>
							</div></td>
						
						<td width="14%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">State(订单状态)</span>
							</div></td>
						<td width="36%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">Operate(操作)</span>
							</div></td>
					</tr>
					<tbody>
						<s:iterator value="page.result" var="item" status="s">
							<tr>
								<td height="20" bgcolor="#FFFFFF">
									<div align="center">
										<s:property value="#s.count"/>
									</div>
								</td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
										align="center">
										<s:property value="#item.itemNo" />
									</div></td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
										align="center">
										<span class="STYLE19"><s:property
												value="#item.price" /></span>
									</div></td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
										align="center">
										<span class="STYLE19"><s:date name="new java.util.Date(#item.buyTime)" format="yyyy-MM-dd HH:mm:ss"/> </span>
									</div></td>
								
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
										align="center">
										<s:if test="#item.paystate==1">
											<span class="STYLE19" style="color:green;">已付款</span>
										</s:if>
										<s:elseif test="#item.paystate==0">
											<span class="STYLE19" style="color:black;">未付款</span>
										</s:elseif>
										<s:else>
											<span class="STYLE19" style="color:red;">已失效</span>
										</s:else>
									</div></td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
										align="center">
										<s:if test="#item.paystate!=0">
											<a href="javascript:;" ><input type="button" value="pay"  disabled="disabled" style="border: 0px;background-color: d3eaef;width: 100px;"/></a>
										</s:if>
										<s:else>
											<input type="button" value="pay" style="border: 0px;background-color: d3eaef;width: 100px;" onclick="javascript:location.href='<%=path%>/user/item!repay.do?itemId=<s:property value="#item.id"/>'"/>
										</s:else>
											<input type="button" value="delete" style="border: 0px;background-color: d3eaef;width: 100px;" onclick="deleteConfirm(<s:property value="#item.id"/>);"/>
									</div></td>
							</tr>
						</s:iterator>
					</tbody>
				</table></td>
		</tr>
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr bgcolor="d3eaef">
						<td width="33%"><div align="left">
								<span class="STYLE22">&nbsp;&nbsp;&nbsp;&nbsp;Total:
								<strong> <s:property value="page.totalCount" /></strong> page  
								<strong><s:property value="page.currentPageNo" /></strong> of&nbsp;   
								<strong> <s:property value="page.lastPageNo" /> </strong> PageSize:
								<strong><s:property value="pageSize" /></strong>
								</span>
							</div></td>
						<td width="67%">
							<table width="312" border="0" align="right" cellpadding="0"
								cellspacing="0">
								<tr>
									<s:if test="1==page.currentPageNo">
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="First" />
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<a href="<%=path%>/user/item!queryItem?pageNo=1"><input
													style="border-color: #EEEEFF; border: 0px;" type="button"
													value="First" /></a>
											</div></td>
									</s:else>
									<s:if test="page.hasPrevPage()">
										<td width="49"><div align="center">
												<a
													href="<%=path%>/user/item!queryItem?pageNo=<s:property value="pageNo-1"/>"><input
													style="border-color: #EEEEFF; border: 0px;" type="button"
													value="Prev" /></a>
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="Prev" />
											</div></td>
									</s:else>
									<s:if test="page.hasNextPage()">
										<td width="49"><div align="center">
												<a
													href="<%=path%>/user/item!queryItem?pageNo=<s:property value="pageNo+1"/>"><input
													style="border-color: #EEEEFF; border: 0px;" type="button"
													value="Next" /></a>
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="Next" />
											</div></td>
									</s:else>
									<s:if test="page.currentPageNo==page.lastPageNo||page.lastPageNo==0">
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="Last" />
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<a
													href="<%=path%>/user/item!queryItem.do?pageNo=<s:property value="page.lastPageNo"/>"><input
													style="border-color: #EEEEFF; border: 0px;" type="button"
													value="Last" /></a>
											</div></td>
									</s:else>
									<td width="37" class="STYLE22"><div align="center">Go</div></td>
									<td colspan="3" width="97">
										<form action="<%=path%>/user/item!queryItem.do" method="post">
											<table>
												<tr>
													<td>
														<div align="center">
															<input type="text" name="pageNo" id="pageNo"
																style="width: 20px; height: 12px; font-size: 12px; border: solid 1px #7aaebd;" />
														</div>
													</td>
													<td width="22" class="STYLE22"><div align="center">&nbsp;page</div></td>
													<td width="35"><input type="submit" value="Go" style="border-color: #EEEEFF; border:0px; margin-right:10px;" onclick="return pagebuy(<s:property value="page.lastPageNo"/>)"></td>
												</tr>
											</table>
										</form>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table></td>
		</tr>
	</table>
</body>
</html>
